﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteNew.Master" Inherits="System.Web.Mvc.ViewPage<ASPNETMVCApplication.Areas.Shop.Models.SearchCategoryModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	UpdatePrice
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

   <script>
       $(function () {
           $("button, input:submit,input:reset").button();

       });
	</script>
<script>
    $(function () {
        $("#DateFrom").datepicker(
        {
            changeMonth: true,
            changeYear: true,
            showOn: "button",
            buttonImage: "/Assets/images/calendar.gif",
            buttonImageOnly: true
        }
        );
    });
	</script>
    <script>
        $(function () {
            $("#DateTo").datepicker(
            {
                changeMonth: true,
                changeYear: true,
                showOn: "button",
                buttonImage: "/Assets/images/calendar.gif",
                buttonImageOnly: true
            }
            );
        });
	</script>
    <% Html.EnableClientValidation(); %>
     <% using (Ajax.BeginForm("UpdatePrice","Product",new AjaxOptions {UpdateTargetId="status"}))
        {%>
        <%: Html.ValidationSummary(true) %>
    <div id="page-heading"><h1>Cập nhật giá vé </h1></div>
     

<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
<tr>
    <div class="ui-state-default"><p style="color:Maroon;font-weight:bold" id="status"></p></div>
</tr>
<tr>
	<th rowspan="3" class="sized"><img src="/Assets/images/shared/side_shadowleft.jpg" 
            width="20" height="300" alt="" /></th>
	<th class="topleft"></th>
	<td id="tbl-border-top">&nbsp;</td>
	<th class="topright"></th>
	<th rowspan="3" class="sized"><img src="/Assets/images/shared/side_shadowright.jpg" 
            width="20" height="300" alt="" /></th>
</tr>
<tr>
	<td id="tbl-border-left"></td>
	<td>
	<!--  start content-table-inner -->
	<div id="content-table-inner">
	
	<table border="0" width="100%" cellpadding="0" cellspacing="0">
	<tr valign="top">
	<td>
		<!-- start id-form -->
		<table border="0" cellpadding="0" cellspacing="0"  id="id-form">
		<tr>
		<th valign="top">Điểm đầu:</th>
		<td>	
		<select id="FirstPoint" name="FirstPoint"  class="styledselect_form_1">
			<option value="1">HCM</option>
			<option value="2">BS</option>
			
		</select></td>
		<td></td>
		<th valign="top">Giá mới :</th>
		<td style="width: 254px"><%: Html.TextBoxFor(model => model.NewPrice, new { @class = "inp-form",Title="Giá nhập vào là 1 số" })%>
                <%: Html.ValidationMessageFor(model => model.NewPrice)%></td>
		</tr>
         <tr>
		<th valign="top">Điểm cuối:</th>
		<td>	
		<select id="LastPoint" name="LastPoint"  class="styledselect_form_1">
			<option value="1">HCM</option>
			<option value="2">BS</option>
			
		</select></td>
		<td></td>
		<th valign="top">Chọn xe :</th>
		<td style="width: 254px"><%: Html.DropDownList("TrafficId", (IEnumerable<SelectListItem>)ViewData["ListTraffic"],new { @class="styledselect_form_1"})%></td>
		</tr> 
        <tr>
		
		<th valign="top">Từ ngày :</th>
		<td><%: Html.TextBoxFor(model => model.DateFrom, new { @class = "inp-form" })%>
                <%: Html.ValidationMessageFor(model => model.DateFrom)%></td>
		<td></td>
		<th valign="top">Đến ngày :</th>
		<td style="width: 254px"><%: Html.TextBoxFor(model => model.DateTo, new { @class = "inp-form" })%>
                <%: Html.ValidationMessageFor(model => model.DateTo)%></td>
		</tr> 
       <tr>
		<th valign="top">&nbsp;</th>
		<td>	
		
		</td>
		<td></td>
		<td style="width: 169px">&nbsp;</td>
		<td style="width: 254px">&nbsp;</td>
		</tr>
        <tr>
		<th valign="top">&nbsp;</th>
		<td>	
		
		</td>
		<td></td>
		<td style="width: 169px">&nbsp;</td>
		<td style="width: 254px">&nbsp;</td>
		</tr>
        
        <tr>
		<th valign="top">&nbsp;</th>
		<td></td>
		<td></td>
		<td style="width: 169px">&nbsp;</td>
		<td style="width: 254px">&nbsp;</td>
		</tr>
        </tr>
        <tr>
		<th valign="top"></th>

		<td><% var suppId=Session["SuppId"]; %><%: Html.Hidden("SuppId",suppId) %></td>
		<td><%: Html.Hidden("Date",DateTime.Now) %></td>
		<td style="width: 169px">&nbsp;</td>
		<td style="width: 254px">&nbsp;</td>
		</tr>
	<tr>
		<th>&nbsp;</th>
		<td valign="top">
			&nbsp;
		</td>
		<td>
			<input type="submit" value="Đăng xe"  /></td>
		<td style="width: 169px">
			<input type="reset" value="Nhập lại"  /></td>
		<td style="width: 254px">&nbsp;</td>
	</tr>
	</table>
	<!-- end id-form  -->

	</td>
	<td>

	<!--  start related-activities -->
	
	<!-- end related-activities -->

</td>
</tr>
<tr>
<td><img src="images/shared/blank.gif" width="695" height="1" alt="blank" /></td>
<td></td>
</tr>
</table>
 
<div class="clear"></div>
 

</div>
<!--  end content-table-inner  -->
</td>
<td id="tbl-border-right"></td>
</tr>
<tr>
	<th class="sized bottomleft"></th>
	<td id="tbl-border-bottom">&nbsp;</td>
	<th class="sized bottomright"></th>
</tr>
</table>
    <% } %>

   
</asp:Content>

